import request from '@/utils/request.js'

// 搜索 - 获取联想菜单
export const suggetListAPI = ({
  keywords
}) => request({
  url: '/v1_0/suggestion',
  method: 'GET',
  params: {
    q: keywords
  }
})

// 搜索 - 获取搜索结果列表
export const searchResultAPI = ({
  q,
  page = 1
}) => request({
  url: '/v1_0/search',
  method: 'GET',
  params: {
    q,
    page
  }
})
